package com.zq.practice;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ProjectName: ybxy6
 * @Titile: Student
 * @Author: zqsfg
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Comparable<Student>{
    private String id;//学号
    private String name;//姓名
    private int age;//年龄
    private String address;//地址
    @Override
    public int compareTo(Student o) {
        return this.id.compareTo(o.id);
    }

}
